@import '../../variables.scss';

.hzdz-waste-management {
  position: relative;
  width: 510px;
  height: auto;
  
  // 响应式适配
  @media screen and (max-width: 1920px) {
    transform: scale(0.8);
    transform-origin: top left;
  }
  
  @media screen and (max-width: 1080px) {
    transform: scale(0.6);
    transform-origin: top left;
  }
  
  @media screen and (min-width: 3952px) {
    transform: scale(1.2);
    transform-origin: top left;
  }

  // 顶部标题栏
  &__header {
    position: relative;
    width: 510px;
    height: 56px;
    margin-bottom: 1px;
  }

  &__header-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
  }

  &__title {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 97px;
    height: 24px;
    font-family: YouSheBiaoTiHei, sans-serif;
    font-size: 24px;
    color: #FFFFFF;
    line-height: 24px;
    letter-spacing: 2px;
    text-shadow: 0px 1px 8px rgba(0, 15, 13, 0.66);
    text-align: left;
    font-style: normal;
    background: linear-gradient(90deg, #FFFFFF 0%, #4899FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  &__english-title {
    position: absolute;
    left: 137px;
    top: 50%;
    transform: translateY(-50%);
    width: 175px;
    height: 14px;
    font-family: AzonixRegular, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 14px;
    text-align: left;
    font-style: normal;
  }

  // 主内容区域
  &__content {
    width: 500px;
    height: 765px;
    background: linear-gradient(180deg, #14191F 0%, #3C4249 100%), 
                linear-gradient(178deg, rgba(9, 11, 13, 0) 0%, #26394D 100%), 
                radial-gradient(185% 43% at 53% -3%, rgba(166, 213, 255, 0.5) 0%, rgba(166, 209, 255, 0) 24%, rgba(179, 212, 255, 0) 100%);
    border: 1px solid rgba(77, 89, 102, 0.25);
    border-radius: 4px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  // 统计数据区域
  &__stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  &__stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  &__stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;

    &:hover {
      .hzdz-waste-management__stat-value {
        transform: scale(1.05);
        filter: brightness(1.2);
      }
    }
  }

  &__stat-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    
    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  &__stat-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
  }

  &__stat-value {
    position: relative;
    font-family: DINAlternate, DINAlternate;
    font-weight: bold;
    font-size: 24px;
    color: #1AD7FF;
    line-height: 24px;
    text-align: center;
    font-style: normal;
    background: linear-gradient(90deg, #FFFFFF 0%, #81C6FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.86px;
    transition: all 0.3s ease;
  }

  &__stat-unit {
    position: absolute;
    right: -26px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #6FB1FF;
    border-radius: 2px;
  }

  &__stat-label {
    font-family: SourceHanSansSC, SourceHanSansSC;
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 16px;
    text-align: center;
    font-style: normal;
  }

  // 视频监控section
  &__video-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 8px;
  }

  &__section-header {
    position: relative;
    display: flex;
    align-items: center;
    height: 24px;
  }

  &__section-dot {
    width: 17px;
    height: 17px;
    background: #033A74;
    border: 1px solid #008BFF;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
  }

  &__section-title {
    font-family: SourceHanSansSC, SourceHanSansSC;
    font-weight: 500;
    font-size: 16px;
    color: #6FBDFF;
    line-height: 24px;
    text-align: left;
    font-style: normal;
    letter-spacing: 0.57px;
    white-space: nowrap;
  }

  &__section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 139, 255, 0) 0%, #008BFF 100%);
    margin-left: 8px;
    margin-right: 14px;
  }

  &__section-arrows {
    display: flex;
    gap: 9px;
    flex-shrink: 0;
  }

  &__section-arrow {
    width: 6px;
    height: 11px;
    background: #37A4FF;
    box-shadow: 0px 0px 6px 0px #7EC4FF;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    
    &--inactive {
      background: #008BFF;
      box-shadow: 0px 0px 6px 0px #008BFF;
      opacity: 0.4;
    }
  }

  // 视频列表
  &__video-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  &__video-item {
    position: relative;
    width: 460px;
    height: 248px;
    border: 1px solid;
    border-image: radial-gradient(circle, rgba(164, 239, 255, 0.3), rgba(0, 105, 255, 0)) 1 1;
    backdrop-filter: blur(2px);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;

    &:hover {
      border-image: radial-gradient(circle, rgba(164, 239, 255, 0.6), rgba(0, 105, 255, 0.1)) 1 1;
      transform: scale(1.02);
    }
  }

  &__video-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    background: rgba(7, 59, 109, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2;
  }

  &__video-name {
    font-family: SourceHanSansSC, SourceHanSansSC;
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 22px;
    letter-spacing: 1px;
    text-align: left;
    font-style: normal;
  }

  &__video-status {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    
    &.online {
      background: #32C5FF;
    }
    
    &.offline {
      background: #FF4D4F;
    }
  }

  &__video-content {
    width: 100%;
    height: 100%;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
  }

  &__video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  // 响应式调整
  @media screen and (max-width: 1920px) {
    &__header {
      width: 408px;
      height: 45px;
    }
    
    &__title {
      font-size: 19px;
      left: 16px;
      width: 78px;
    }
    
    &__english-title {
      font-size: 11px;
      left: 110px;
      width: 140px;
    }
    
    &__content {
      width: 400px;
      height: 612px;
      padding: 16px;
      gap: 16px;
    }
    
    &__stats-row {
      gap: 26px;
    }
    
    &__stat-icon {
      width: 51px;
      height: 51px;
    }
    
    &__stat-value {
      font-size: 19px;
      line-height: 19px;
    }
    
    &__stat-unit {
      width: 16px;
      height: 16px;
      right: -21px;
    }
    
    &__stat-label {
      font-size: 13px;
      line-height: 13px;
    }
    
    &__video-item {
      width: 368px;
      height: 198px;
    }
    
    &__video-header {
      height: 30px;
      padding: 0 16px;
    }
    
    &__video-name {
      font-size: 13px;
      line-height: 18px;
    }
    
    &__video-status {
      width: 14px;
      height: 14px;
    }
  }
  
  @media screen and (max-width: 1080px) {
    &__header {
      width: 306px;
      height: 34px;
    }
    
    &__title {
      font-size: 14px;
      left: 12px;
      width: 58px;
    }
    
    &__english-title {
      font-size: 8px;
      left: 82px;
      width: 105px;
    }
    
    &__content {
      width: 300px;
      height: 459px;
      padding: 12px;
      gap: 12px;
    }
    
    &__stats-row {
      gap: 19px;
    }
    
    &__stat-icon {
      width: 38px;
      height: 38px;
    }
    
    &__stat-value {
      font-size: 14px;
      line-height: 14px;
    }
    
    &__stat-unit {
      width: 12px;
      height: 12px;
      right: -16px;
    }
    
    &__stat-label {
      font-size: 10px;
      line-height: 10px;
    }
    
    &__video-item {
      width: 276px;
      height: 149px;
    }
    
    &__video-header {
      height: 23px;
      padding: 0 12px;
    }
    
    &__video-name {
      font-size: 10px;
      line-height: 13px;
    }
    
    &__video-status {
      width: 11px;
      height: 11px;
    }
  }
  
  @media screen and (min-width: 3952px) {
    &__header {
      width: 612px;
      height: 67px;
    }
    
    &__title {
      font-size: 29px;
      left: 24px;
      width: 116px;
    }
    
    &__english-title {
      font-size: 17px;
      left: 164px;
      width: 210px;
    }
    
    &__content {
      width: 600px;
      height: 918px;
      padding: 24px;
      gap: 24px;
    }
    
    &__stats-row {
      gap: 38px;
    }
    
    &__stat-icon {
      width: 77px;
      height: 77px;
    }
    
    &__stat-value {
      font-size: 29px;
      line-height: 29px;
    }
    
    &__stat-unit {
      width: 24px;
      height: 24px;
      right: -31px;
    }
    
    &__stat-label {
      font-size: 19px;
      line-height: 19px;
    }
    
    &__video-item {
      width: 552px;
      height: 298px;
    }
    
    &__video-header {
      height: 46px;
      padding: 0 24px;
    }
    
    &__video-name {
      font-size: 19px;
      line-height: 26px;
    }
    
    &__video-status {
      width: 22px;
      height: 22px;
    }
  }
}